package com.zh.media.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zh.media.domain.dto.*;
import com.zh.web.domain.media.entity.WorkInfo;

public interface WorkInfoService extends IService<WorkInfo> {
    
    String praise(UpdateWorkInfoDto workInfoService);
    String collect(UpdateWorkInfoDto updateWorkInfoDto);
    void updateView(UpdateWorkInfoDto updateWorkInfoDto);
    void updateShare(UpdateWorkInfoDto updateWorkInfoDto);
    Integer countPraise(Long id);

    Integer countCollect(Long id);

    Integer countView(Long id);


    Integer countShare(Long id);

    WorkInfo selectByIdAndUserId(Long id, Long userId);

}
